from rest_framework import serializers
from .models import Wallet, WithdrawRequest

class WalletSerializer(serializers.ModelSerializer):
    class Meta:
        model = Wallet
        fields = '__all__'
        read_only_fields = ['id', 'user', 'created_at', 'updated_at']


class WithdrawRequestSerializer(serializers.ModelSerializer):
    class Meta:
        model = WithdrawRequest
        fields = '__all__'
        read_only_fields = ['id', 'wallet', 'created_at', 'updated_at', 'reviewed_by', 'reviewed_at']